import 'package:dio/dio.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class APage extends StatefulWidget {
  const APage({super.key});

  @override
  State<APage> createState() => _APageState();
}

class _APageState extends State<APage> {

  final dio = Dio();
  var price = 10.obs;

  void getHttp() async {
    final response = await dio.get('https://dart.dev');
    print(response);
  }
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("A page"),),
      body: Center(child: Text("A page"),),
    );
  }
}
